package com.desire.test;

import java.io.IOException;

/**
 * @author desire
 */
public class _31_webp格式图像 {
    public static void main(String[] args) throws IOException {
        String srcPath = "C:\\Users\\desire\\Desktop\\javaProject\\01-javaBase\\src\\main\\resources\\bagua.png";
        String dst = "C:\\Users\\desire\\Desktop\\javaProject\\01-javaBase\\src\\main\\resources\\bagua_webp.png";
        Runtime.getRuntime().exec("cmd /k start cwebp -q 33 " + srcPath + " -o " + dst + "");

    }
}
